package com.funtonow.jqdk.adapter;

import android.view.View;
import android.widget.CheckBox;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.funtonow.jqdk.R;

import java.util.List;

/**
 * @author Jiajien
 * @date 2019/6/5
 */
public class StringAdapter extends BaseQuickAdapter<String, BaseViewHolder> {


    public StringAdapter(@Nullable List<String> data) {
        super(R.layout.city_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.setText(R.id.tv_city_name, item);
        CheckBox checkBox = helper.getView(R.id.checkBox);
        checkBox.setVisibility(View.GONE);
    }

}
